# aux_source_directory(./logger LOGGER_SRC)
# aux_source_directory(./utils UTILS_SRC)

add_definitions("-g -std=c++11") 

# add_executable(utils ${LOGGER_SRC} ${UTILS_SRC})

#只需要部分源文件进行编译
add_executable(server ./mysqldb/mysqldb.cc ./redis/redis.cc ./utils/ipAddressPort.cc ./controller/controller.cc ./utils/tcpServer.cc ./mainServer/mainServer.cc ./threadPool/threadPool.cc ./thread/thread.cc ./reactor/reactor.cc ./view/view.cc ./logger/timeStamp.cc ./logger/message.cc ./logger/logger.cc)


#编译的时候加动态链接库 
#参数(可执行程序   可执行程序需要的动态链接库)
target_link_libraries(server pthread event hiredis mysqlclient)